class Budget {
    Float expectedTotalIncome = 0.0
    Float knownTotalIncome = 0.0
    Float expectedVariableCost = 0.0
    Float knownVariableCost = 0.0
    Integer year = 2009

    static belongsTo = Project
    
    static constraints = {
    }

    public Float calcTotalIncome(){
        return 1.0
    }
    public Float calcTotalVariableCost(){
        return 1.0
    }
    public Float calcTotalFixedCost(){
        return 1.0
    }
    public Float calcBalance(){

        return calcTotalIncome() - calcTotalVariableCost() -calcTotalFixedCost()
    }
    public Float calcIncomeLastYear(){
        return 1.0
    }
    public Float calcCostLastYear(){
        return 1.0
    }
    public Float calcBalanceLastYear(){
        return 1.0
    }
}
